<extend name="Index:info"/>
<block name="body">
<div class="panel admin-panel">
  <div class="panel-head"><strong class="icon-reorder"> 内容列表</strong></div>
  <div class="padding border-bottom">  
  <a class="button border-yellow" href=""><span class="icon-plus-square-o"></span> 添加内容</a>
  </div> 
  <table class="table table-hover text-center">
    <tr>
      <th width="5%">ID</th>     
      <th>栏目名称</th>  
      <th>导航地址</th>
      <th>是否显示</th>
      <th>排序</th>
      <th width="250">操作</th>
    </tr>
   
   <volist name="navs" id="vo">
    <tr>
      <td>{$vo.n_id}</td>      
      <td>{$vo.n_title}</td>  
      <td>{$vo.n_url}</td>
      <td><if condition="$vo.n_status eq 1">显示<else />隐藏</if></td>
      <td>{$vo.n_sort}</td>
      <td>
      <div class="button-group">
      <a type="button" class="button border-main" href="{:U('index/editcolumn')}?id={$vo.n_id}"><span class="icon-edit"></span>修改</a>
       <a class="button border-red" href="{:U('index/delcolumn')}?id={$vo.n_id}" onclick="return del(17)"><span class="icon-trash-o"></span> 删除</a>
      </div>
      </td>
    </tr> 
    </volist>

    
  </table>
</div>
<script>
function del(id){
	if(confirm("您确定要删除吗?")){
		
	}
}
</script>
<div class="panel admin-panel margin-top">
  <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>增加内容</strong></div>
  <div class="body-content">
    <form method="post" class="form-x" action="">   
      <input type="hidden" name="n_id"  value="" />
      <div class="form-group">
        <div class="label">
          <label>栏目名称：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" name="n_title" value="" data-validate="required:请输入标题" />
          <div class="tips"></div>
        </div>
      </div> 

       <div class="form-group">
        <div class="label">
          <label>导航地址：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" name="n_url" value="" />
          <div class="tips"></div>
        </div>
      </div>       

     <div class="form-group">
        <div class="label">
          <label>显示：</label>
        </div>
        <div class="field">
          <div class="button-group radio">
          
          <label class="button active">
         	  <span class="icon icon-check"></span>             
              <input name="n_status" value="1" type="radio" checked="checked">是
          </label>             
        
          <label class="button active"><span class="icon icon-times"></span>          	
              <input name="n_status" value="0"  type="radio" checked="checked">否
          </label>         
           </div>       
        </div>
     </div>
      <div class="form-group">
        <div class="label">
          <label>排序：</label>
        </div>
        <div class="field">
          <input type="text" class="input w50" name="n_sort" value="0"  data-validate="required:,number:排序必须为数字" />
          <div class="tips"></div>
        </div>
      </div>
     <div class="form-group">
        <div class="label">
          <label></label>
        </div>
        <div class="field">
          <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
        </div>
      </div>
    </form>
  </div>
</div>
</block>